package com.hc.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class GetProperties {

	public Properties getResource(){
		 //InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("/WEB-INF/classes/resouce.properties" );
		 InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("resouce.properties" );
		 Properties prop = new Properties();
		try {
			prop.load(inputStream);
			return prop;
		} catch (IOException e) {
			LoggerUtil.error(e);
			return null;
		}finally {
			try {
				inputStream.close();
			} catch (IOException e) {
				LoggerUtil.error(e);
			}
		}
	}
	
}
